Carbon


PBHSetDirAccessSync

Header: Files.h Carbon status: Supported

Changes the access control information for a directory.

OSErr PBHSetDirAccessSync (
    HParmBlkPtr paramBlock
);
paramBlock

A pointer to an HFS parameter block.

function result

A result code.

DISCUSSION

The relevant fields of the parameter block are:

The PBHSetDirAccessSync function allows you to change the access rights to the specified directory.

To change the owner or group, you should set the ioACOwnerID or ioACGroupID field to the appropriate ID. You must be the owner of the directory to change the owner or group ID. A guest on a server can manipulate the privileges of any directory owned by the guest.

AVAILABILITY

Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)